import type { App } from 'vue';
import Score from './src/components/score.component';
import ScoreDesign from './src/designer/score.design.component';
import { propsResolver } from './src/components/score.props';

export * from './src/components/score.props';
export { Score, ScoreDesign };

export default {
    install(app: App): void {
        app.component(Score.name, Score);
    },
    register(componentMap: Record<string, any>, propsResolverMap: Record<string, any>): void {
        componentMap['score'] = Score;
        propsResolverMap['score'] = propsResolver;
    },
    registerDesigner(componentMap: Record<string, any>, propsResolverMap: Record<string, any>): void {
        componentMap['score'] = ScoreDesign;
        propsResolverMap['score'] = propsResolver;
    }
};
